<%@ include file="/common/taglibs.jsp"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>

<probiz:pageHeading entityName="${orderDelivery.orderDeliveryName}" entityHeadingKey="orderDeliveryDetail.heading" />
<content tag="buttons">
	<probiz:iconBtn btnType="save" onclick="return fnDoSave(this);" />
	<probiz:iconBtn btnType="saveAndNext" onclick="return fnDoSaveAndNext(this);" />
	<c:if test="${orderDelivery.orderDeliveryId!=null}">
		<probiz:iconBtn btnType="delete" onclick="return fnDoDelete(this);" />
	</c:if>
	<probiz:iconBtn btnType="back" onclick="return fnDoCancelForm(this);" />
</content>
<probiz:showBindErrors bindPath="orderDelivery.*" />
<div class="top clearfix">
	<ul class="tab">
		<li class="curr"><span><fmt:message key="menu.viewOrderDeliverys"/></span></li>
	</ul>
</div>
<div class="modify">
	<form:form method="post" cssClass="mainForm" id="orderDelivery" commandName="orderDelivery"
			action="${ctxPath}/order/orderDelivery.html" onsubmit="return validateOrderDelivery(this);">
		<form:hidden path="version" />
		<input type="hidden" name="orderDeliveryId" value="${orderDelivery.orderDeliveryId}"/> 
		<table width="100%" border="0" cellspacing="0" cellpadding="0" class="com_modi_table">
		<tr>
			<th colspan="2" class="title"><h4><fmt:message key="orderDelivery.group.basic"/></h4></th>
		</tr>
		<probiz:input property="orderDeliveryName" />
 		<probiz:input property="shipperName" />
 		<tr>
 		</tr>
 		<tr>
			<th>
				<fmt:message key="orderDelivery.regionFullName" />(<span class="red">*</span>)
			</th>
			<td>
		 		<system:regionLinkageSelector selectorId="regionLinkageSelector" regionId="${orderDelivery.regionId}" needValidate="true"/>
			</td>
        </tr>
 		<probiz:input property="address" />
 		<probiz:input property="zipCode" />
 		<probiz:input property="mobilephone" />
 		<probiz:input property="telephone" />
 		
		<tr>
			<th class="label_width_1">
				<StoreAdmin:label key="orderDelivery.isDefault" />
			</th>
			<td>
					<input type="checkbox" name="isShowCheck" id="isShowCheck" <c:if test="${orderDelivery.isDefault == 1}">checked</c:if>  onclick="if(this.checked){$('isDefault').value=1;}else{$('isDefault').value=0}"> 默认
					<input type="hidden" name="isDefault" id="isDefault" value="${(empty orderDelivery.isDefault)?1:orderDelivery.isDefault}">
			</td>
		</tr>
 		
 		<probiz:input property="sortOrder" />
 		<tr>
			<th class="label_width_1">
				<StoreAdmin:label key="orderDelivery.status" />
			</th>
			<td>
					<input type="checkbox" name="isShowCheck" id="isShowCheck" <c:if test="${empty orderDelivery.status || orderDelivery.status == 1}">checked</c:if>  onclick="if(this.checked){$('status').value=1;}else{$('status').value=0}"> 激活
					<input type="hidden" name="status" id="status" value="${(empty orderDelivery.status)?1:orderDelivery.status}">
			</td>
		</tr>		
		<probiz:textarea rows="5" property="remarks" cols="60"/> 		
 		<probiz:formText label="common.message.createTime" value="${orderDelivery.createTime}" />
  		<probiz:formText label="common.message.updateTime" value="${orderDelivery.updateTime}" />
   	</table>
</form:form>
</div>

<v:javascript formName="orderDelivery" staticJavascript="false" />
<script type="text/javascript">
    document.forms["orderDelivery"].elements["orderDeliveryName"].focus();
</script>
